<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDataDictionaryTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create ('data_dictionary', function (Blueprint $table) {
            $table->engine = 'InnoDB';
            $table->uuid ('id')->primary ('id');//uuid主键
            $table->string ('table_name', 50);//表名英文
            $table->string ('table_title', 50);//表名中文
            $table->string ('field_name', 50);//字段英文
            $table->string ('field_title', 50);//字段中文
            $table->string ('module_title', 50);//模块中文
            $table->string('dict_desc',200);//描述
            $table->timestamps ();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists ('data_dictionary');
    }
}
